package cn.zhangjie.basic.mapper;


import cn.zhangjie.basic.query.BaseQuery;


import java.util.List;

public interface BasicMapper<T> {
   
    void save(T t);
 
    void remove(Long id);
  
    void update(T t);

    T loadById(Long id);

    List<T> loadAll();

    Long queryCount(BaseQuery query);

    List<T> queryData(BaseQuery query);
    //批量删除
    void pactchdel(List<Long> ids);
}
